package com.qk.management.controller;

import com.qk.dto.operatelog.OperateLogDTO;
import com.qk.management.service.OperateLogService;
import com.qk.result.Result;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author:zhengbowen
 * @Date: 2025/10/16 17:47
 * @Description:
 */
@Slf4j
@RestController
@RequiredArgsConstructor
@RequestMapping("/logs")
public class OperateLogController {
    private final OperateLogService operateLogService;

    @GetMapping("")
    public Result getLogsByPage(OperateLogDTO operateLogDTO) {
       return Result.success(operateLogService.getByPage(operateLogDTO)) ;
    }
}
